#include "menuitem.h"
#include "command.h"

MenuItem::MenuItem(Command* pCmd, CommandList* pCmdList)
{
	m_pCmd = pCmd;
	m_pCmdList = pCmdList;
}

void MenuItem::click()
{
	m_pCmd->execute();
	m_pCmdList->add(m_pCmd);
}
